home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
unity320.zip
/
MASM.AWK
< prev
next >
Wrap
Text File
|
1990-08-13
|
395b
|
14 lines
# Parses the output of MASM and returns records containing the following:
# Filename, Line, Column, ErrorMessage
# Since Column can not be assertained it is set to 0.
/: warning |: error |: fatal/ \
{
split($1,a,"(")
split(a[2],b,")")
a = sprintf("%1s, %1s, 0,",a[1],b[1])
b = ""
for (i=2; i <= NF; i++) b = sprintf("%1s %1s",b,$i)
print a b
}